package com.blueheart.music.mapper;

import com.blueheart.music.model.pojo.Rank;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface RankMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Rank record);

    int insertSelective(Rank record);

    Rank selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Rank record);

    int updateByPrimaryKey(Rank record);

    /**
     * 查询评分
     * @param songListId
     * @return
     */
    List<Rank> selectBySongListId(Integer songListId);
}